package com.mtao.mapper;

import com.mtao.entity.ArticleCategory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ArticleCategoryMapper {
    @Insert("insert into article_category(category_name,category_alias,create_user,create_time,update_time) " +
            "values(#{categoryName},#{categoryAlias},#{createUser},#{createTime},#{updateTime})")
    void add(ArticleCategory articleCategory);

    @Update("update article_category set field1=new-value1, field2=new-value2")
    void update(ArticleCategory articleCategory);
}
